<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/10/22
  Time: 11:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>基于 layui 的极简社区页面模版</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="fly,layui,前端社区">
    <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
    <link rel="stylesheet" href="../../res/layui/css/layui.css">
    <link rel="stylesheet" href="../../res/css/global.css">
</head>
<body>

<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <a class="fly-logo" href="/">
            <img src="../../res/images/logo.png" alt="layui">
        </a>
        <ul class="layui-nav fly-nav layui-hide-xs">
            <li class="layui-nav-item layui-this">
                <a href="/"><i class="iconfont icon-jiaoliu"></i>交流</a>
            </li>
            <li class="layui-nav-item">
                <a href="../case/case.html"><i class="iconfont icon-iconmingxinganli"></i>案例</a>
            </li>
            <li class="layui-nav-item">
                <a href="http://www.layui.com/" target="_blank"><i class="iconfont icon-ui"></i>框架</a>
            </li>
        </ul>

        <ul class="layui-nav fly-nav-user">
            <c:if test="${fly_user == null}">
                <!-- 未登入的状态 -->
                <li class="layui-nav-item">
                    <a class="iconfont icon-touxiang layui-hide-xs" href="user/login.html"></a>
                </li>
                <li class="layui-nav-item">
                    <a href="${pageContext.servletContext.contextPath}/forward/log">登入</a>
                </li>
                <li class="layui-nav-item">
                    <a href="${pageContext.servletContext.contextPath}/forward/reg">注册</a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="/app/qq/" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" title="QQ登入"
                       class="iconfont icon-qq"></a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="/app/weibo/" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" title="微博登入"
                       class="iconfont icon-weibo"></a>
                </li>
            </c:if>

            <c:if test="${fly_user != null}">
                <!-- 登入后的状态 -->
                <li class="layui-nav-item">
                        <%--头像部分--%>
                    <a class="fly-nav-avatar" href="javascript:;">
                        <cite class="layui-hide-xs">${fly_user.nickName}</cite>
                        <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息：layui 作者"></i>
                        <i class="layui-badge fly-badge-vip layui-hide-xs">VIP3</i>
                        <img src="${pageContext.servletContext.contextPath}/res/images/avatar/${fly_user.avatar}">
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="href="${pageContext.servletContext.contextPath}/forward/set"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
                        <dd><a href="user/message.html"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a>
                        </dd>
                        <dd><a href="user/home.html"><i class="layui-icon" style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a>
                        </dd>
                        <hr style="margin: 5px 0;">
                        <dd><a href="/user/logout/" style="text-align: center;">退出</a></dd>
                    </dl>
                </li>
            </c:if>
        </ul>
    </div>
</div>

<div class="fly-panel fly-column">
    <div class="layui-container">
        <ul class="layui-clear">
            <li class="layui-hide-xs"><a href="${pageContext.servletContext.contextPath}/forward/index">首页</a></li>
            <li class="layui-this"><a href="${pageContext.servletContext.contextPath}/forward/mindex?cid=1">提问</a></li>
            <li><a href="${pageContext.servletContext.contextPath}/forward/mindex?cid=2">分享</a></li>
            <li><a href="${pageContext.servletContext.contextPath}/forward/mindex?cid=3">讨论</a></li>
            <li><a href="${pageContext.servletContext.contextPath}/forward/mindex?cid=4">建议</a></li>
            <li><a href="${pageContext.servletContext.contextPath}/forward/mindex?cid=5">公告</a></li>
            <li><a href="${pageContext.servletContext.contextPath}/forward/mindex?cid=6">动态</a></li>
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li>

            <!-- 用户登入后显示 -->
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="../user/index.html">我发表的贴</a></li>
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="../user/index.html#collection">我收藏的贴</a></li>
        </ul>

        <div class="fly-column-right layui-hide-xs">
            <span class="fly-search"><i class="layui-icon"></i></span>
            <a href="${pageContext.servletContext.contextPath}/forward/add" class="layui-btn">发表新帖</a>
        </div>
        <div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
            <a href="${pageContext.servletContext.contextPath}/forward/add" class="layui-btn">发表新帖</a>
        </div>
    </div>
</div>

<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
            <div class="fly-panel" style="margin-bottom: 0;">

                <div class="fly-panel-title fly-filter">
                  
                    <span class="fly-filter-right layui-hide-xs">
            <a href="" class="layui-this">按最新</a>
            <span class="fly-mid"></span>
          </span>
                </div>

                <ul class="fly-list">
                    <c:if test="${loadIndexInfoCid != null}">
                        <c:forEach items="${loadIndexInfoCid.cidmainArticleList}" var="top">

                            <li>
                                <a href="user/home.html" class="fly-avatar">
                                    <img src="${pageContext.servletContext.contextPath}/res/images/avatar/${top.user.avatar}"
                                         alt="贤心">
                                </a>
                                <h2>
                                    <a class="layui-badge">${top.cateNameZh}</a>
                                    <a href="${pageContext.servletContext.contextPath}/article/detail?aid=${top.id}">${top.title}</a>
                                </h2>
                                <div class="fly-list-info">
                                    <a href="user/home.html" link>
                                        <cite>${top.user.nickName}</cite>
                                        <i class="iconfont icon-renzheng" title="认证信息：XXX"></i>
                                        <i class="layui-badge fly-badge-vip">VIP3</i>
                                    </a>
                                    <span>${top.publishTime}</span>

                                    <span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻"><i
                                            class="iconfont icon-kiss"></i> ${top.payKiss}</span>
                                    <c:if test="${top.end == true}">
                                        <span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>
                                    </c:if>
                                    <span class="fly-list-nums">
                <i class="iconfont icon-pinglun1" title="回答"></i> ${top.replyNum}
              </span>
                                </div>
                                <div class="fly-list-badge">

                                    <c:if test="${top.cream == true}">
                                        <span class="layui-badge layui-bg-red">精帖</span>
                                    </c:if>
                                </div>
                            </li>
                        </c:forEach>
                    </c:if>
                </ul>

                <!-- <div class="fly-none">没有相关数据</div> -->

                <div style="text-align: center">
                    <div class="laypage-main"><span class="laypage-curr">1</span><a href="/jie/page/2/">2</a><a href="/jie/page/3/">3</a><a href="/jie/page/4/">4</a><a href="/jie/page/5/">5</a><span>…</span><a href="/jie/page/148/" class="laypage-last" title="尾页">尾页</a><a href="/jie/page/2/" class="laypage-next">下一页</a></div>
                </div>

            </div>
        </div>
        <div class="layui-col-md4">
            <dl class="fly-panel fly-list-one">
                <dt class="fly-panel-title">本周热议</dt>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>
<%--                <dd>--%>
<%--                    <a href="">基于 layui 的极简社区页面模版</a>--%>
<%--                    <span><i class="iconfont icon-pinglun1"></i> 16</span>--%>
<%--                </dd>--%>

                <!-- 无数据时 -->
                <!--
                <div class="fly-none">没有相关数据</div>
                -->
            </dl>

            <div class="fly-panel">
                <div class="fly-panel-title">
                    这里可作为广告区域
                </div>
                <div class="fly-panel-main">
                    <a href="" target="_blank" class="fly-zanzhu" style="background-color: #393D49;">虚席以待</a>
                </div>
            </div>

            <div class="fly-panel fly-link">
                <h3 class="fly-panel-title">友情链接</h3>
                <dl class="fly-panel-main">
                    <dd><a href="http://www.layui.com/" target="_blank">layui</a><dd>
                    <dd><a href="http://layim.layui.com/" target="_blank">WebIM</a><dd>
                    <dd><a href="http://layer.layui.com/" target="_blank">layer</a><dd>
                    <dd><a href="http://www.layui.com/laydate/" target="_blank">layDate</a><dd>
                    <dd><a href="mailto:xianxin@layui-inc.com?subject=%E7%94%B3%E8%AF%B7Fly%E7%A4%BE%E5%8C%BA%E5%8F%8B%E9%93%BE" class="fly-link">申请友链</a><dd>
                </dl>
            </div>

        </div>
    </div>
</div>

<div class="fly-footer">
    <p><a href="http://fly.layui.com/" target="_blank">Fly社区</a> 2017 &copy; <a href="http://www.layui.com/" target="_blank">layui.com 出品</a></p>
    <p>
        <a href="http://fly.layui.com/jie/3147/" target="_blank">付费计划</a>
        <a href="http://www.layui.com/template/fly/" target="_blank">获取Fly社区模版</a>
        <a href="http://fly.layui.com/jie/2461/" target="_blank">微信公众号</a>
    </p>
</div>

<script src="../../res/layui/layui.js"></script>
<script>
    layui.cache.page = 'jie';
    layui.cache.user = {
        username: '游客'
        ,uid: -1
        ,avatar: '../../res/images/avatar/00.jpg'
        ,experience: 83
        ,sex: '男'
    };
    layui.config({
        version: "3.0.0"
        ,base: '../../res/mods/'
    }).extend({
        fly: 'index'
    }).use('fly');
</script>

</body>
</html>
